<?php
	include("./config.inc.php");
	include("./util.php");
	include("./clases.php");
	
	session_start();

	if(empty($_SESSION))
		header("Location:index.php"); 	
	
	$_SESSION["obj_sesion"]->eliminarSesion();

	session_destroy();

	if($_GET["caduca"]!="on"){
		header("Location:index.php");
		die();
	}
	
	$porque="Ha caducado su sesi&oacute;n, vuelva a autentificarse para acceder a la aplicaci&oacute;n.";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>SIO</title>
<link href="css/portada.css" rel="stylesheet" type="text/css">
</head>
<body>
<br><br><br><br><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
	<td style="text-align:center; " class="txt_normal" ><img src="imagenes/stop.png"><br><?=$porque?></td>
</tr>
</table>
<script language="JavaScript" type="text/JavaScript">
	setTimeout("location.href='index.php';",3000);
</script>
</body>
</html>
